<%-- 
    Document   : login
    Created on : Sep 2, 2013, 9:46:27 AM
    Author     : john
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<%
    if (request.getSession().getAttribute("user") != null) {
        response.sendRedirect("gps");
    }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico">
        <style>

            @font-face {
                font-family: "Ubuntu";
                font-style: normal;
                font-weight: 300;
                src: local("Ubuntu Light"), local("Ubuntu-Light"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/_aijTyevf54tkVDLy-dlnD8E0i7KZn-EPnyo3HZu7kw.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu";
                font-style: normal;
                font-weight: 400;
                src: local("Ubuntu"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/_xyN3apAT_yRRDeqB3sPRg.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu";
                font-style: normal;
                font-weight: 700;
                src: local("Ubuntu Bold"), local("Ubuntu-Bold"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/0ihfXUL2emPh0ROJezvraD8E0i7KZn-EPnyo3HZu7kw.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu";
                font-style: italic;
                font-weight: 300;
                src: local("Ubuntu Light Italic"), local("Ubuntu-LightItalic"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/DZ_YjBPqZ88vcZCcIXm6VobN6UDyHWBl620a-IRfuBk.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu";
                font-style: italic;
                font-weight: 400;
                src: local("Ubuntu Italic"), local("Ubuntu-Italic"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/kbP_6ONYVgE-bLa9ZRbvvvesZW2xOQ-xsNqO47m55DA.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu";
                font-style: italic;
                font-weight: 700;
                src: local("Ubuntu Bold Italic"), local("Ubuntu-BoldItalic"), url("https://themes.googleusercontent.com/static/fonts/ubuntu/v5/OMD20Sg9RTs7sUORCEN-7YbN6UDyHWBl620a-IRfuBk.woff") format("woff");
            }
            @font-face {
                font-family: "Ubuntu Mono";
                font-style: normal;
                font-weight: 400;
                src: local("Ubuntu Mono"), local("UbuntuMono-Regular"), url("https://fonts.gstatic.com/s/ubuntumono/v5/ViZhet7Ak-LRXZMXzuAfkYbN6UDyHWBl620a-IRfuBk.woff") format("woff");
            }
        </style>
        <style>

            body {
                background-color: #e5e5e5;
                font: 13px Ubuntu;
                height: 100%;
                margin: 0;
                visibility: visible;
            }

            .box_login{
                background-color: #fff;
                border-color: #d8d8d8;
                border-image: none;
                border-radius: 3px;
                border-style: solid;
                border-width: 0 1px 2px;
                box-sizing: border-box;
                vertical-align: top;
                width: 400px;
            }
        </style>
        <script>
            function ao() {
                document.getElementById("user").focus();
            }
        </script>
        <title>${SGPS.no_server} - Login</title>
    </head>
    <body onload="ao()">
    <center>
        <div class="box_login">
            <form action="login" method="post">
                <input type="hidden" name="action" value="1">
                <table>
                    <tr>
                        <td>Usuario:</td>
                        <td>
                            <input id="user" type="text" name="user"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td>
                            <input type="password" name="password"/>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" value="acceder">
                        </td>
                    </tr>
                </table>
            </form>
        </div>

    </center>
</body>
</html>
